﻿using System.Linq;

namespace Ecobee.Net
{
	public class EventList : ApiObjectCollection<Event>
	{
		public EventList()
			: base()
		{
		}

		public Event Current
		{
			get
			{
				return this.OrderBy(t => t.StartDateTime).First();
			}
		}
	}
}
